﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL.Imp.Auto;

namespace TrainingsApp.Logic {
    public class TS_SystemInfoSetting_Logic {
        public static TS_SystemInfo_Entity View(string name) {
            var source = TS_SystemInfoSetting_DAL.GetConfig(name);
            if (source == null || source.Count <= 0) return null;
            return source.FirstOrDefault();
        }

        public static void Update(TS_SystemInfo_Entity entity) {
            TS_SystemInfoSetting_DAL.Update(entity);
        }
    }
}
